package cn.slipi.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.slipi.admin.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消费者接口授权表
 * </p>
 *
 * @author lee
 * @since 2020-12-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("csm_grant")
public class CsmGrant extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消费者id
     */
    private Integer csmId;

    /**
     * appKey
     */
    private String appKey;

    /**
     * appSecret
     */
    private String appSecret;

    /**
     * 授权接口id
     */
    private Integer pdrId;

    /**
     * 授权接口id
     */
    private Integer pdrApiId;

    /**
     * 授权接口code
     */
    private String pdrApiCode;

    /**
     * 授权接口返回参数
     */
    private String grantParam;

    /**
     * 发布网关时间 publish_time
     */
    private Long publishTime;

    /**
     * 发布快照
     */
    private String publishSnap;

    private Integer enable;


}
